package klan.dp.ua.maven_extended_plugin;

import org.apache.commons.lang.StringUtils;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * Generate info file.
 *
 * @goal echo
 * @phase install
 */
public class EchoPlugin extends AbstractMojo {

	 /**
     * Location of the file.
     * @parameter
     * @required
     */
    private String value;
    
	@Override
	public void execute() throws MojoExecutionException, MojoFailureException {
		if (!StringUtils.isEmpty(value)){
			getLog().info("echo:" + value);
		}
	}

}
